﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Gfw.Web.Areas.Admin.Models
{
    /// <summary>
    /// 查询model
    /// </summary>
    public class CommonQueryModel
    {
        public CommonQueryModel()
        {
            Key = string.Empty;
            StartDate = DateTime.Today.AddMonths(-1);
            EndDate = DateTime.Today;
        }

        [DataType(DataType.Text)]
        [Display(Name = "关键字：")]
        public string Key { get; set; }

        [DataType(DataType.Date)]
        [Display(Name = "开始日期")]
        public DateTime? StartDate { get; set; }

        [DataType(DataType.Date)]
        [Display(Name = "至")]
        public DateTime? EndDate { get; set; }
    }
}